package org.example.service.Impl;

import org.example.config.R;
import org.example.domain.Logs;
import org.example.mapper.LogsMapper;
import org.example.service.LogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class LogsServiceImpl implements LogsService {
    @Autowired
    LogsMapper logsMapper;
    @Override
    public List<Logs> logsList(Logs logs) {
        return logsMapper.logsList(logs);
    }

    @Override
    public R delById(Integer id) {
        logsMapper.delById(id);
        return R.successed(null);
    }

    @Override
    public List<Logs> list() {
        return logsMapper.list();
    }

    @Override
    public R LogsdelById(Integer id) {
        logsMapper.LogsdelById(id);
        return R.successed(null);
    }

    @Override
    public R delAll(Integer[] ids) {
        logsMapper.delAll(ids);
        return R.successed(null);
    }
}
